/* Avatar Component Styles */
.myui-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
  background-color: var(--bg-secondary, #ccc);
  color: var(--text-secondary, #fff);
  font-variant: tabular-nums;
  white-space: nowrap;
  position: relative;
}

/* Sizes */
.myui-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.myui-avatar-md {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.myui-avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.myui-avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

/* Shapes */
.myui-avatar-circle {
  border-radius: 50%;
}

.myui-avatar-square {
  border-radius: var(--border-radius, 4px);
}

/* Image */
.myui-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Icon */
.myui-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Group */
.myui-avatar-group {
  display: inline-flex;
  align-items: center;
}

.myui-avatar-group .myui-avatar {
  border: 2px solid var(--bg-primary, #fff);
  margin-left: -8px;
}

.myui-avatar-group .myui-avatar:first-child {
  margin-left: 0;
}

/* Dark Mode Support */
[data-theme='dark'] .myui-avatar {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme='dark'] .myui-avatar-group .myui-avatar {
  border-color: var(--bg-primary);
}
